package com.yao.dataobject;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * User: 姚宏武
 * Date: 2017/11/18
 * Time: 10:42
 * Email：401369870@qq.com
 * Description: 订单详情表
 */
@Data
@Entity
@Table(name = "order_detail")
public class OrderDetail {

    /**
     * 详情id
     */
    @Id
    private String detailId;
    /**
     * 订单id
     */
    private String orderId;
    /**
     * 商品id
     */
    private String productId;
    /**
     * 商品名字
     */
    private String productName;
    /**
     * 商品价格
     */
    private BigDecimal productPrice;
    /**
     * 商品数量
     */
    private Integer productQuantity;
    /**
     * 商品小图
     */
    private String productIcon;

}
